#ifndef __FREE_SW_I2C_H__
#define __FREE_SW_I2C_H__

#include <stdint.h>

#define SW_I2C_ERR
#define SW_I2C_ERR_DEV 1
#define SW_I2C_ERR_REG 2
#define SW_I2C_ERR_WRITE 4
#define SW_I2C_ERR_READ 8

SW_I2C_ERR int sw_i2c_read(uint8_t dev_addr, uint8_t reg_addr, uint8_t *data, uint16_t len);

SW_I2C_ERR int sw_i2c_write(uint8_t dev_addr, uint8_t reg_addr, uint8_t *data, uint16_t len);

#endif // __FREE_SW_I2C_H__
